<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/strutil.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#L220'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#L619'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/lib.html'>lib</a>/strutil.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/lib.html'>lib</a>/strutil.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L220'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L619'><img class='icon' src='../icons/last.png' alt='[last]' /></a><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 lib/strutil.h'  /> */</em>
<hr />
<h2 class='header'><a href='../J/strutil.h.html' title='Multiple included from 115 places.'>INCLUDED FROM</a></h2>
<hr />
<h2 class='header'>DEFINITIONS</h2>
This source file includes following definitions.
<ol>
<li><a href='#L220' title='Defined at 220.'>str_printf</a></li>
<li><a href='#L619' title='Defined at 619.'>str_move</a></li>
</ol>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#ifndef</em> <a href='../S/lib--strutil.h.html#L2' title='Defined at 2 in lib/strutil.h.'>MC_STRUTIL_H</a>
<a id='L2' name='L2'></a>   2 <em class='sharp'>#define</em> <a href='../S/lib--strutil.h.html#L1' title='Referred from 1 in lib/strutil.h.'>MC_STRUTIL_H</a>
<a id='L3' name='L3'></a>   3 
<a id='L4' name='L4'></a>   4 <em class='sharp'>#include</em> "<a href='lib--global.h.html'>lib/global.h</a>"         <em class='comment'>/* include glib.h */</em>
<a id='L5' name='L5'></a>   5 
<a id='L6' name='L6'></a>   6 <em class='sharp'>#include</em> &lt;sys/types.h&gt;
<a id='L7' name='L7'></a>   7 <em class='sharp'>#include</em> &lt;inttypes.h&gt;
<a id='L8' name='L8'></a>   8 <em class='sharp'>#include</em> &lt;string.h&gt;
<a id='L9' name='L9'></a>   9 
<a id='L10' name='L10'></a>  10 <em class='comment'>/* Header file for strutil.c, strutilascii.c, strutil8bit.c, strutilutf8.c.</em>
<a id='L11' name='L11'></a>  11 <em class='comment'> * There are two sort of functions:</em>
<a id='L12' name='L12'></a>  12 <em class='comment'> * 1. functions for working with growing strings and conversion strings between</em>
<a id='L13' name='L13'></a>  13 <em class='comment'> *    different encodings.</em>
<a id='L14' name='L14'></a>  14 <em class='comment'> *    (implemented directly in strutil.c)</em>
<a id='L15' name='L15'></a>  15 <em class='comment'> * 2. functions, that hide differences between encodings derived from ASCII.</em>
<a id='L16' name='L16'></a>  16 <em class='comment'> *    (implemented separately in strutilascii.c, strutil8bit.c, strutilutf8.c)</em>
<a id='L17' name='L17'></a>  17 <em class='comment'> * documentation is made for UTF-8 version of functions.</em>
<a id='L18' name='L18'></a>  18 <em class='comment'> */</em>
<a id='L19' name='L19'></a>  19 
<a id='L20' name='L20'></a>  20 <em class='comment'>/* invalid strings</em>
<a id='L21' name='L21'></a>  21 <em class='comment'> * function, that works with invalid strings are marked with "I" </em>
<a id='L22' name='L22'></a>  22 <em class='comment'> * in documentation</em>
<a id='L23' name='L23'></a>  23 <em class='comment'> * invalid bytes of string are handled as one byte characters with width 1, they</em>
<a id='L24' name='L24'></a>  24 <em class='comment'> * are displayed as questionmarks, I-maked comparing functions try to keep </em>
<a id='L25' name='L25'></a>  25 <em class='comment'> * the original value of these bytes.</em>
<a id='L26' name='L26'></a>  26 <em class='comment'> */</em>
<a id='L27' name='L27'></a>  27 
<a id='L28' name='L28'></a>  28 <em class='comment'>/* combining characters</em>
<a id='L29' name='L29'></a>  29 <em class='comment'> * displaynig: all handled as zero with characters, expect combing character </em>
<a id='L30' name='L30'></a>  30 <em class='comment'> * at the begin of string, this character has with one (space add before), </em>
<a id='L31' name='L31'></a>  31 <em class='comment'> * so str_term_width is not good for computing width of singles characters </em>
<a id='L32' name='L32'></a>  32 <em class='comment'> * (never return zero, expect emtpy string)</em>
<a id='L33' name='L33'></a>  33 <em class='comment'> * for compatibility are strings composed before displaynig</em>
<a id='L34' name='L34'></a>  34 <em class='comment'> * comparing: comparing decompose all string before comparing, n-compare </em>
<a id='L35' name='L35'></a>  35 <em class='comment'> * functions do not work as is usual, because same strings do not have to be </em>
<a id='L36' name='L36'></a>  36 <em class='comment'> * same length in UTF-8. So they return 0 if one string is prefix of the other </em>
<a id='L37' name='L37'></a>  37 <em class='comment'> * one. </em>
<a id='L38' name='L38'></a>  38 <em class='comment'> * str_prefix is used to determine, how many characters from one string are </em>
<a id='L39' name='L39'></a>  39 <em class='comment'> * prefix in second string. However, str_prefix return number of characters in</em>
<a id='L40' name='L40'></a>  40 <em class='comment'> * decompose form. (used in do_search (screen.c))</em>
<a id='L41' name='L41'></a>  41 <em class='comment'> */</em>
<a id='L42' name='L42'></a>  42 
<a id='L43' name='L43'></a>  43 <em class='comment'>/*** typedefs(not structures) and defined constants **********************************************/</em>
<a id='L44' name='L44'></a>  44 
<a id='L45' name='L45'></a>  45 <em class='sharp'>#define</em> <a href='../R/IS_FIT.html' title='Multiple referred from 4 places.'>IS_FIT</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; 0x0010)
<a id='L46' name='L46'></a>  46 <em class='sharp'>#define</em> <a href='../S/src--filemanager--panel.c.html#L1768' title='Referred from 1768 in src/filemanager/panel.c.'>MAKE_FIT</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) | 0x0010)
<a id='L47' name='L47'></a>  47 <em class='sharp'>#define</em> <a href='../R/HIDE_FIT.html' title='Multiple referred from 7 places.'>HIDE_FIT</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; 0x000f)
<a id='L48' name='L48'></a>  48 
<a id='L49' name='L49'></a>  49 <em class='sharp'>#define</em> <a href='../R/INVALID_CONV.html' title='Multiple referred from 40 places.'>INVALID_CONV</a> ((<a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a>) (-1))
<a id='L50' name='L50'></a>  50 
<a id='L51' name='L51'></a>  51 <em class='comment'>/*** enums ***************************************************************************************/</em>
<a id='L52' name='L52'></a>  52 
<a id='L53' name='L53'></a>  53 <em class='comment'>/* results of conversion function</em>
<a id='L54' name='L54'></a>  54 <em class='comment'> */</em>
<a id='L55' name='L55'></a>  55 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong>
<a id='L56' name='L56'></a>  56 <em class='brace'>{</em>
<a id='L57' name='L57'></a>  57     <em class='comment'>/* success means, that convertion has been finished successully</em>
<a id='L58' name='L58'></a>  58 <em class='comment'>     */</em>
<a id='L59' name='L59'></a>  59     <a href='../R/ESTR_SUCCESS.html' title='Multiple referred from 12 places.'>ESTR_SUCCESS</a> = 0,
<a id='L60' name='L60'></a>  60     <em class='comment'>/* problem means, that not every characters was successfully converted (They are</em>
<a id='L61' name='L61'></a>  61 <em class='comment'>     * replaced with questionmark). So is impossible convert string back. </em>
<a id='L62' name='L62'></a>  62 <em class='comment'>     */</em>
<a id='L63' name='L63'></a>  63     <a href='../R/ESTR_PROBLEM.html' title='Multiple referred from 8 places.'>ESTR_PROBLEM</a> = 1,
<a id='L64' name='L64'></a>  64     <em class='comment'>/* failure means, that conversion is not possible (example: wrong encoding </em>
<a id='L65' name='L65'></a>  65 <em class='comment'>     * of input string)</em>
<a id='L66' name='L66'></a>  66 <em class='comment'>     */</em>
<a id='L67' name='L67'></a>  67     <a href='../R/ESTR_FAILURE.html' title='Multiple referred from 19 places.'>ESTR_FAILURE</a> = 2
<a id='L68' name='L68'></a>  68 <em class='brace'>}</em> <a href='../R/estr_t.html' title='Multiple referred from 23 places.'>estr_t</a>;
<a id='L69' name='L69'></a>  69 
<a id='L70' name='L70'></a>  70 <em class='comment'>/* alignment strings on terminal</em>
<a id='L71' name='L71'></a>  71 <em class='comment'> */</em>
<a id='L72' name='L72'></a>  72 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong>
<a id='L73' name='L73'></a>  73 <em class='brace'>{</em>
<a id='L74' name='L74'></a>  74     <a href='../R/J_LEFT.html' title='Multiple referred from 9 places.'>J_LEFT</a> = 0x01,
<a id='L75' name='L75'></a>  75     <a href='../R/J_RIGHT.html' title='Multiple referred from 22 places.'>J_RIGHT</a> = 0x02,
<a id='L76' name='L76'></a>  76     <a href='../R/J_CENTER.html' title='Multiple referred from 7 places.'>J_CENTER</a> = 0x03,
<a id='L77' name='L77'></a>  77     <em class='comment'>/* if there is enough space for string on terminal,</em>
<a id='L78' name='L78'></a>  78 <em class='comment'>     * string is centered otherwise is aligned to left */</em>
<a id='L79' name='L79'></a>  79     <a href='../R/J_CENTER_LEFT.html' title='Multiple referred from 5 places.'>J_CENTER_LEFT</a> = 0x04,
<a id='L80' name='L80'></a>  80     <em class='comment'>/* fit alignment, if string is to long, is truncated with '~' */</em>
<a id='L81' name='L81'></a>  81     <a href='../R/J_LEFT_FIT.html' title='Multiple referred from 21 places.'>J_LEFT_FIT</a> = 0x11,
<a id='L82' name='L82'></a>  82     J_RIGHT_FIT = 0x12,
<a id='L83' name='L83'></a>  83     J_CENTER_FIT = 0x13,
<a id='L84' name='L84'></a>  84     J_CENTER_LEFT_FIT = 0x14
<a id='L85' name='L85'></a>  85 <em class='brace'>}</em> <a href='../R/align_crt_t.html' title='Multiple referred from 10 places.'>align_crt_t</a>;
<a id='L86' name='L86'></a>  86 
<a id='L87' name='L87'></a>  87 <em class='comment'>/* string-to-integer parsing results</em>
<a id='L88' name='L88'></a>  88 <em class='comment'> */</em>
<a id='L89' name='L89'></a>  89 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong>
<a id='L90' name='L90'></a>  90 <em class='brace'>{</em>
<a id='L91' name='L91'></a>  91     <a href='../R/LONGINT_OK.html' title='Multiple referred from 5 places.'>LONGINT_OK</a> = 0,
<a id='L92' name='L92'></a>  92 
<a id='L93' name='L93'></a>  93     <em class='comment'>/* These two values can be ORed together, to indicate that both errors occurred. */</em>
<a id='L94' name='L94'></a>  94     <a href='../R/LONGINT_OVERFLOW.html' title='Multiple referred from 3 places.'>LONGINT_OVERFLOW</a> = 1,
<a id='L95' name='L95'></a>  95     <a href='../R/LONGINT_INVALID_SUFFIX_CHAR.html' title='Multiple referred from 5 places.'>LONGINT_INVALID_SUFFIX_CHAR</a> = 2,
<a id='L96' name='L96'></a>  96 
<a id='L97' name='L97'></a>  97     LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = (<a href='../S/lib--strutil.h.html#L95' title='Defined at 95 in lib/strutil.h.'>LONGINT_INVALID_SUFFIX_CHAR</a> | <a href='../S/lib--strutil.h.html#L94' title='Defined at 94 in lib/strutil.h.'>LONGINT_OVERFLOW</a>),
<a id='L98' name='L98'></a>  98     <a href='../R/LONGINT_INVALID.html' title='Multiple referred from 3 places.'>LONGINT_INVALID</a> = 4
<a id='L99' name='L99'></a>  99 <em class='brace'>}</em> <a href='../R/strtol_error_t.html' title='Multiple referred from 8 places.'>strtol_error_t</a>;
<a id='L100' name='L100'></a> 100 
<a id='L101' name='L101'></a> 101 <em class='comment'>/*** structures declarations (and typedefs of structures)*****************************************/</em>
<a id='L102' name='L102'></a> 102 
<a id='L103' name='L103'></a> 103 <em class='comment'>/* all functions in str_class must be defined for every encoding */</em>
<a id='L104' name='L104'></a> 104 <strong class='reserved'>struct</strong> <a href='../R/str_class.html' title='Multiple referred from 10 places.'>str_class</a>
<a id='L105' name='L105'></a> 105 <em class='brace'>{</em>
<a id='L106' name='L106'></a> 106     <em class='comment'>/* *INDENT-OFF* */</em>
<a id='L107' name='L107'></a> 107     <a href='../Y/gchar.html' title='Multiple used in 338 places.'>gchar</a> *(*<a href='../Y/conv_gerror_message.html' title='Multiple used in 5 places.'>conv_gerror_message</a>) (<a href='../Y/GError.html' title='Multiple used in 175 places.'>GError</a> * <a href='../Y/error.html' title='Multiple used in 229 places.'>error</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/def_msg.html' title='Multiple used in 11 places.'>def_msg</a>);
<a id='L108' name='L108'></a> 108       <em class='comment'>/*I*/</em> <a href='../S/lib--strutil.h.html#L68' title='Defined at 68 in lib/strutil.h.'>estr_t</a> (*<a href='../Y/vfs_convert_to.html' title='Multiple used in 5 places.'>vfs_convert_to</a>) (<a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a> <a href='../Y/coder.html' title='Multiple used in 28 places.'>coder</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/string.html' title='Multiple used in 50 places.'>string</a>, <strong class='reserved'>int</strong> <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>, <a href='../Y/GString.html' title='Multiple used in 219 places.'>GString</a> * <a href='../Y/buffer.html' title='Multiple used in 1012 places.'>buffer</a>);
<a id='L109' name='L109'></a> 109       <em class='comment'>/*I*/</em> <strong class='reserved'>void</strong> (*<a href='../Y/insert_replace_char.html' title='Multiple used in 5 places.'>insert_replace_char</a>) (<a href='../Y/GString.html' title='Multiple used in 219 places.'>GString</a> * <a href='../Y/buffer.html' title='Multiple used in 1012 places.'>buffer</a>);
<a id='L110' name='L110'></a> 110     <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> (*<a href='../Y/is_valid_string.html' title='Multiple used in 5 places.'>is_valid_string</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L111' name='L111'></a> 111       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/is_valid_char.html' title='Multiple used in 5 places.'>is_valid_char</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a>);
<a id='L112' name='L112'></a> 112       <em class='comment'>/*I*/</em> <strong class='reserved'>void</strong> (*<a href='../Y/cnext_char.html' title='Multiple used in 8 places.'>cnext_char</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **);
<a id='L113' name='L113'></a> 113     <strong class='reserved'>void</strong> (*<a href='../Y/cprev_char.html' title='Multiple used in 8 places.'>cprev_char</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **);
<a id='L114' name='L114'></a> 114     <strong class='reserved'>void</strong> (*<a href='../Y/cnext_char_safe.html' title='Multiple used in 8 places.'>cnext_char_safe</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **);
<a id='L115' name='L115'></a> 115       <em class='comment'>/*I*/</em> <strong class='reserved'>void</strong> (*<a href='../Y/cprev_char_safe.html' title='Multiple used in 8 places.'>cprev_char_safe</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **);
<a id='L116' name='L116'></a> 116       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/cnext_noncomb_char.html' title='Multiple used in 6 places.'>cnext_noncomb_char</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L117' name='L117'></a> 117       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/cprev_noncomb_char.html' title='Multiple used in 6 places.'>cprev_noncomb_char</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/begin.html' title='Multiple used in 17 places.'>begin</a>);
<a id='L118' name='L118'></a> 118       <em class='comment'>/*I*/</em> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> (*<a href='../Y/char_isspace.html' title='Multiple used in 6 places.'>char_isspace</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L119' name='L119'></a> 119       <em class='comment'>/*I*/</em> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> (*<a href='../Y/char_ispunct.html' title='Multiple used in 6 places.'>char_ispunct</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L120' name='L120'></a> 120       <em class='comment'>/*I*/</em> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> (*<a href='../Y/char_isalnum.html' title='Multiple used in 6 places.'>char_isalnum</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L121' name='L121'></a> 121       <em class='comment'>/*I*/</em> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> (*<a href='../Y/char_isdigit.html' title='Multiple used in 6 places.'>char_isdigit</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L122' name='L122'></a> 122       <em class='comment'>/*I*/</em> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> (*<a href='../Y/char_isprint.html' title='Multiple used in 17 places.'>char_isprint</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L123' name='L123'></a> 123       <em class='comment'>/*I*/</em> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> (*<a href='../Y/char_iscombiningmark.html' title='Multiple used in 5 places.'>char_iscombiningmark</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L124' name='L124'></a> 124       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/length.html' title='Multiple used in 226 places.'>length</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L125' name='L125'></a> 125       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/length2.html' title='Multiple used in 5 places.'>length2</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>int</strong>);
<a id='L126' name='L126'></a> 126       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/length_noncomb.html' title='Multiple used in 5 places.'>length_noncomb</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L127' name='L127'></a> 127       <em class='comment'>/*I*/</em> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> (*<a href='../Y/char_toupper.html' title='Multiple used in 7 places.'>char_toupper</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>char</strong> **, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> *);
<a id='L128' name='L128'></a> 128     <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> (*<a href='../Y/char_tolower.html' title='Multiple used in 7 places.'>char_tolower</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>char</strong> **, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> *);
<a id='L129' name='L129'></a> 129     <strong class='reserved'>void</strong> (*<a href='../Y/fix_string.html' title='Multiple used in 5 places.'>fix_string</a>) (<strong class='reserved'>char</strong> *);
<a id='L130' name='L130'></a> 130       <em class='comment'>/*I*/</em> <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *(*<a href='../S/lib--strutil--strutilutf8.c.html#L52' title='Defined at 52 in lib/strutil/strutilutf8.c.'>term_form</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L131' name='L131'></a> 131       <em class='comment'>/*I*/</em> <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *(*<a href='../Y/fit_to_term.html' title='Multiple used in 5 places.'>fit_to_term</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>int</strong>, <a href='../S/lib--strutil.h.html#L85' title='Defined at 85 in lib/strutil.h.'>align_crt_t</a>);
<a id='L132' name='L132'></a> 132       <em class='comment'>/*I*/</em> <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *(*<a href='../Y/term_trim.html' title='Multiple used in 5 places.'>term_trim</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>int</strong> <a href='../Y/width.html' title='Multiple used in 278 places.'>width</a>);
<a id='L133' name='L133'></a> 133       <em class='comment'>/*I*/</em> <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *(*<a href='../Y/term_substring.html' title='Multiple used in 5 places.'>term_substring</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>int</strong>, <strong class='reserved'>int</strong>);
<a id='L134' name='L134'></a> 134       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/term_width1.html' title='Multiple used in 5 places.'>term_width1</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L135' name='L135'></a> 135       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/term_width2.html' title='Multiple used in 5 places.'>term_width2</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a>);
<a id='L136' name='L136'></a> 136       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/term_char_width.html' title='Multiple used in 5 places.'>term_char_width</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L137' name='L137'></a> 137       <em class='comment'>/*I*/</em> <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *(*<a href='../Y/trunc.html' title='Multiple used in 10 places.'>trunc</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>int</strong>);
<a id='L138' name='L138'></a> 138       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/offset_to_pos.html' title='Multiple used in 5 places.'>offset_to_pos</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a>);
<a id='L139' name='L139'></a> 139       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/column_to_pos.html' title='Multiple used in 5 places.'>column_to_pos</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a>);
<a id='L140' name='L140'></a> 140       <em class='comment'>/*I*/</em> <strong class='reserved'>char</strong> *(*<a href='../Y/create_search_needle.html' title='Multiple used in 5 places.'>create_search_needle</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>);
<a id='L141' name='L141'></a> 141     <strong class='reserved'>void</strong> (*<a href='../Y/release_search_needle.html' title='Multiple used in 5 places.'>release_search_needle</a>) (<strong class='reserved'>char</strong> *, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>);
<a id='L142' name='L142'></a> 142     <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *(*<a href='../Y/search_first.html' title='Multiple used in 5 places.'>search_first</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>);
<a id='L143' name='L143'></a> 143     <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *(*<a href='../Y/search_last.html' title='Multiple used in 5 places.'>search_last</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>);
<a id='L144' name='L144'></a> 144     <strong class='reserved'>int</strong> (*<a href='../Y/compare.html' title='Multiple used in 5 places.'>compare</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L145' name='L145'></a> 145       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/ncompare.html' title='Multiple used in 5 places.'>ncompare</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L146' name='L146'></a> 146       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/casecmp.html' title='Multiple used in 5 places.'>casecmp</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L147' name='L147'></a> 147       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/ncasecmp.html' title='Multiple used in 5 places.'>ncasecmp</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L148' name='L148'></a> 148       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/prefix.html' title='Multiple used in 80 places.'>prefix</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L149' name='L149'></a> 149       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../Y/caseprefix.html' title='Multiple used in 5 places.'>caseprefix</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L150' name='L150'></a> 150       <em class='comment'>/*I*/</em> <strong class='reserved'>char</strong> *(*<a href='../Y/create_key.html' title='Multiple used in 5 places.'>create_key</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L151' name='L151'></a> 151       <em class='comment'>/*I*/</em> <strong class='reserved'>char</strong> *(*<a href='../Y/create_key_for_filename.html' title='Multiple used in 6 places.'>create_key_for_filename</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L152' name='L152'></a> 152       <em class='comment'>/*I*/</em> <strong class='reserved'>int</strong> (*<a href='../S/src--filemanager--dir.c.html#L93' title='Defined at 93 in src/filemanager/dir.c.'>key_collate</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t1.html' title='Multiple used in 54 places.'>t1</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t2.html' title='Multiple used in 65 places.'>t2</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L153' name='L153'></a> 153       <em class='comment'>/*I*/</em> <strong class='reserved'>void</strong> (*<a href='../Y/release_key.html' title='Multiple used in 5 places.'>release_key</a>) (<strong class='reserved'>char</strong> *<a href='../Y/key.html' title='Multiple used in 226 places.'>key</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L154' name='L154'></a> 154     <em class='comment'>/* *INDENT-ON* */</em>
<a id='L155' name='L155'></a> 155 <em class='brace'>}</em>;
<a id='L156' name='L156'></a> 156 
<a id='L157' name='L157'></a> 157 <em class='comment'>/*** global variables defined in .c file *********************************************************/</em>
<a id='L158' name='L158'></a> 158 
<a id='L159' name='L159'></a> 159 <em class='comment'>/* standard convertors */</em>
<a id='L160' name='L160'></a> 160 <strong class='reserved'>extern</strong> <a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a> <a href='../Y/str_cnv_to_term.html' title='Multiple used in 3 places.'>str_cnv_to_term</a>;
<a id='L161' name='L161'></a> 161 <strong class='reserved'>extern</strong> <a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a> <a href='../Y/str_cnv_from_term.html' title='Multiple used in 19 places.'>str_cnv_from_term</a>;
<a id='L162' name='L162'></a> 162 <em class='comment'>/* from terminal encoding to terminal encoding */</em>
<a id='L163' name='L163'></a> 163 <strong class='reserved'>extern</strong> <a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a> <a href='../Y/str_cnv_not_convert.html' title='Multiple used in 17 places.'>str_cnv_not_convert</a>;
<a id='L164' name='L164'></a> 164 
<a id='L165' name='L165'></a> 165 <em class='comment'>/*** declarations of public functions ************************************************************/</em>
<a id='L166' name='L166'></a> 166 
<a id='L167' name='L167'></a> 167 <strong class='reserved'>struct</strong> <a href='../S/lib--strutil.h.html#L104' title='Defined at 104 in lib/strutil.h.'>str_class</a> <a href='../S/lib--strutil--strutilutf8.c.html#L1457' title='Defined at 1457 in lib/strutil/strutilutf8.c.'>str_utf8_init</a> (<strong class='reserved'>void</strong>);
<a id='L168' name='L168'></a> 168 <strong class='reserved'>struct</strong> <a href='../S/lib--strutil.h.html#L104' title='Defined at 104 in lib/strutil.h.'>str_class</a> <a href='../S/lib--strutil--strutil8bit.c.html#L805' title='Defined at 805 in lib/strutil/strutil8bit.c.'>str_8bit_init</a> (<strong class='reserved'>void</strong>);
<a id='L169' name='L169'></a> 169 <strong class='reserved'>struct</strong> <a href='../S/lib--strutil.h.html#L104' title='Defined at 104 in lib/strutil.h.'>str_class</a> <a href='../S/lib--strutil--strutilascii.c.html#L728' title='Defined at 728 in lib/strutil/strutilascii.c.'>str_ascii_init</a> (<strong class='reserved'>void</strong>);
<a id='L170' name='L170'></a> 170 
<a id='L171' name='L171'></a> 171 <em class='comment'>/* create convertor from "from_enc" to terminal encoding</em>
<a id='L172' name='L172'></a> 172 <em class='comment'> * if "from_enc" is not supported return INVALID_CONV </em>
<a id='L173' name='L173'></a> 173 <em class='comment'> */</em>
<a id='L174' name='L174'></a> 174 <a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a> <a href='../S/lib--strutil--strutil.c.html#L270' title='Defined at 270 in lib/strutil/strutil.c.'>str_crt_conv_from</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L175' name='L175'></a> 175 
<a id='L176' name='L176'></a> 176 <em class='comment'>/* create convertor from terminal encoding to "to_enc"</em>
<a id='L177' name='L177'></a> 177 <em class='comment'> * if "to_enc" is not supported return INVALID_CONV </em>
<a id='L178' name='L178'></a> 178 <em class='comment'> */</em>
<a id='L179' name='L179'></a> 179 <a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a> <a href='../S/lib--strutil--strutil.c.html#L262' title='Defined at 262 in lib/strutil/strutil.c.'>str_crt_conv_to</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L180' name='L180'></a> 180 
<a id='L181' name='L181'></a> 181 <em class='comment'>/* close convertor, do not close str_cnv_to_term, str_cnv_from_term, </em>
<a id='L182' name='L182'></a> 182 <em class='comment'> * str_cnv_not_convert </em>
<a id='L183' name='L183'></a> 183 <em class='comment'> */</em>
<a id='L184' name='L184'></a> 184 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L279' title='Defined at 279 in lib/strutil/strutil.c.'>str_close_conv</a> (<a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a>);
<a id='L185' name='L185'></a> 185 
<a id='L186' name='L186'></a> 186 <em class='comment'>/* return on of not used buffers (.used == 0) or create new</em>
<a id='L187' name='L187'></a> 187 <em class='comment'> * returned buffer has set .used to 1</em>
<a id='L188' name='L188'></a> 188 <em class='comment'> */</em>
<a id='L189' name='L189'></a> 189 
<a id='L190' name='L190'></a> 190 <em class='comment'>/* convert string using coder, result of conversion is appended at end of buffer</em>
<a id='L191' name='L191'></a> 191 <em class='comment'> * return ESTR_SUCCESS if there was no problem.</em>
<a id='L192' name='L192'></a> 192 <em class='comment'> * otherwise return  ESTR_PROBLEM or ESTR_FAILURE</em>
<a id='L193' name='L193'></a> 193 <em class='comment'> */</em>
<a id='L194' name='L194'></a> 194 <a href='../S/lib--strutil.h.html#L68' title='Defined at 68 in lib/strutil.h.'>estr_t</a> <a href='../S/lib--strutil--strutil.c.html#L288' title='Defined at 288 in lib/strutil/strutil.c.'>str_convert</a> (<a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <a href='../Y/GString.html' title='Multiple used in 219 places.'>GString</a> *);
<a id='L195' name='L195'></a> 195 <a href='../S/lib--strutil.h.html#L68' title='Defined at 68 in lib/strutil.h.'>estr_t</a> <a href='../S/lib--strutil--strutil.c.html#L296' title='Defined at 296 in lib/strutil/strutil.c.'>str_nconvert</a> (<a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>int</strong>, <a href='../Y/GString.html' title='Multiple used in 219 places.'>GString</a> *);
<a id='L196' name='L196'></a> 196 
<a id='L197' name='L197'></a> 197 <em class='comment'>/* convert GError message (which in UTF-8) to terminal charset</em>
<a id='L198' name='L198'></a> 198 <em class='comment'> * def_char is used if result of error-&gt;str conversion if ESTR_FAILURE</em>
<a id='L199' name='L199'></a> 199 <em class='comment'> * return new allocated null-terminated string, which is need to be freed</em>
<a id='L200' name='L200'></a> 200 <em class='comment'> * I</em>
<a id='L201' name='L201'></a> 201 <em class='comment'> */</em>
<a id='L202' name='L202'></a> 202 <a href='../Y/gchar.html' title='Multiple used in 338 places.'>gchar</a> *<a href='../S/lib--strutil--strutil.c.html#L304' title='Defined at 304 in lib/strutil/strutil.c.'>str_conv_gerror_message</a> (<a href='../Y/GError.html' title='Multiple used in 175 places.'>GError</a> * <a href='../Y/error.html' title='Multiple used in 229 places.'>error</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/def_msg.html' title='Multiple used in 11 places.'>def_msg</a>);
<a id='L203' name='L203'></a> 203 
<a id='L204' name='L204'></a> 204 <em class='comment'>/* return only ESTR_SUCCESS or ESTR_FAILURE, because vfs must be able to convert</em>
<a id='L205' name='L205'></a> 205 <em class='comment'> * result to original string. (so no replace with questionmark)</em>
<a id='L206' name='L206'></a> 206 <em class='comment'> * if coder is str_cnv_from_term or str_cnv_not_convert, string is only copied,</em>
<a id='L207' name='L207'></a> 207 <em class='comment'> * so is possible to show file, that is not valid in terminal encoding</em>
<a id='L208' name='L208'></a> 208 <em class='comment'> */</em>
<a id='L209' name='L209'></a> 209 <a href='../S/lib--strutil.h.html#L68' title='Defined at 68 in lib/strutil.h.'>estr_t</a> <a href='../S/lib--strutil--strutil.c.html#L312' title='Defined at 312 in lib/strutil/strutil.c.'>str_vfs_convert_from</a> (<a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <a href='../Y/GString.html' title='Multiple used in 219 places.'>GString</a> *);
<a id='L210' name='L210'></a> 210 
<a id='L211' name='L211'></a> 211 <em class='comment'>/* if coder is str_cnv_to_term or str_cnv_not_convert, string is only copied,</em>
<a id='L212' name='L212'></a> 212 <em class='comment'> * does replace with questionmark </em>
<a id='L213' name='L213'></a> 213 <em class='comment'> * I</em>
<a id='L214' name='L214'></a> 214 <em class='comment'> */</em>
<a id='L215' name='L215'></a> 215 <a href='../S/lib--strutil.h.html#L68' title='Defined at 68 in lib/strutil.h.'>estr_t</a> <a href='../S/lib--strutil--strutil.c.html#L327' title='Defined at 327 in lib/strutil/strutil.c.'>str_vfs_convert_to</a> (<a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>int</strong>, <a href='../Y/GString.html' title='Multiple used in 219 places.'>GString</a> *);
<a id='L216' name='L216'></a> 216 
<a id='L217' name='L217'></a> 217 <em class='comment'>/* printf function for str_buffer, append result of printf at the end of buffer</em>
<a id='L218' name='L218'></a> 218 <em class='comment'> */</em>
<a id='L219' name='L219'></a> 219 <em class='comment'>/* *INDENT-OFF* */</em>
<a id='L220' name='L220'></a> 220 <strong class='reserved'>void</strong> <a href='../R/str_printf.html' title='Multiple referred from 6 places.'>str_printf</a> (<a href='../Y/GString.html' title='Multiple used in 219 places.'>GString</a> * <a href='../Y/buffer.html' title='Multiple used in 1012 places.'>buffer</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/format.html' title='Multiple used in 125 places.'>format</a>, ...) <a href='../D/G_GNUC_PRINTF.html' title='Multiple defined in 6 places.'>G_GNUC_PRINTF</a> (2, 3);
     <em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><a href='#L619'><img class='icon' src='../icons/right.png' alt='[next]' /></a><img class='icon' src='../icons/n_first.png' alt='[first]' /><a href='#L619'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+220 lib/strutil.h'  /> */</em>
<a id='L221' name='L221'></a> 221 <em class='comment'>/* *INDENT-ON* */</em>
<a id='L222' name='L222'></a> 222 
<a id='L223' name='L223'></a> 223 <em class='comment'>/* add standard replacement character in terminal encoding</em>
<a id='L224' name='L224'></a> 224 <em class='comment'> */</em>
<a id='L225' name='L225'></a> 225 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L347' title='Defined at 347 in lib/strutil/strutil.c.'>str_insert_replace_char</a> (<a href='../Y/GString.html' title='Multiple used in 219 places.'>GString</a> *);
<a id='L226' name='L226'></a> 226 
<a id='L227' name='L227'></a> 227 <em class='comment'>/* init strings and set terminal encoding,</em>
<a id='L228' name='L228'></a> 228 <em class='comment'> * if is termenc NULL, detect terminal encoding</em>
<a id='L229' name='L229'></a> 229 <em class='comment'> * create all str_cnv_* and set functions for terminal encoding</em>
<a id='L230' name='L230'></a> 230 <em class='comment'> */</em>
<a id='L231' name='L231'></a> 231 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L400' title='Defined at 400 in lib/strutil/strutil.c.'>str_init_strings</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/termenc.html' title='Multiple used in 4 places.'>termenc</a>);
<a id='L232' name='L232'></a> 232 
<a id='L233' name='L233'></a> 233 <em class='comment'>/* free all str_buffer and all str_cnv_*</em>
<a id='L234' name='L234'></a> 234 <em class='comment'> */</em>
<a id='L235' name='L235'></a> 235 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L431' title='Defined at 431 in lib/strutil/strutil.c.'>str_uninit_strings</a> (<strong class='reserved'>void</strong>);
<a id='L236' name='L236'></a> 236 
<a id='L237' name='L237'></a> 237 <em class='comment'>/* try convert characters in ch to output using conv</em>
<a id='L238' name='L238'></a> 238 <em class='comment'> * ch_size is size of ch, can by (size_t)(-1) (-1 only for ASCII </em>
<a id='L239' name='L239'></a> 239 <em class='comment'> *     compatible encoding, for other must be set)</em>
<a id='L240' name='L240'></a> 240 <em class='comment'> * return ESTR_SUCCESS if conversion was successfully,</em>
<a id='L241' name='L241'></a> 241 <em class='comment'> * ESTR_PROBLEM if ch contains only part of characters,</em>
<a id='L242' name='L242'></a> 242 <em class='comment'> * ESTR_FAILURE if conversion is not possible</em>
<a id='L243' name='L243'></a> 243 <em class='comment'> */</em>
<a id='L244' name='L244'></a> 244 <a href='../S/lib--strutil.h.html#L68' title='Defined at 68 in lib/strutil.h.'>estr_t</a> <a href='../S/lib--strutil--strutil.c.html#L355' title='Defined at 355 in lib/strutil/strutil.c.'>str_translate_char</a> (<a href='../Y/GIConv.html' title='Multiple used in 59 places.'>GIConv</a> <a href='../Y/conv.html' title='Multiple used in 100 places.'>conv</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/ch_size.html' title='Multiple used in 3 places.'>ch_size</a>,
<a id='L245' name='L245'></a> 245                            <strong class='reserved'>char</strong> *<a href='../Y/output.html' title='Multiple used in 4 places.'>output</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/out_size.html' title='Multiple used in 3 places.'>out_size</a>);
<a id='L246' name='L246'></a> 246 
<a id='L247' name='L247'></a> 247 <em class='comment'>/* test, if text is valid in terminal encoding</em>
<a id='L248' name='L248'></a> 248 <em class='comment'> * I</em>
<a id='L249' name='L249'></a> 249 <em class='comment'> */</em>
<a id='L250' name='L250'></a> 250 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L828' title='Defined at 828 in lib/strutil/strutil.c.'>str_is_valid_string</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L251' name='L251'></a> 251 
<a id='L252' name='L252'></a> 252 <em class='comment'>/* test, if first char of ch is valid</em>
<a id='L253' name='L253'></a> 253 <em class='comment'> * size, how many bytes characters occupied, could be (size_t)(-1)</em>
<a id='L254' name='L254'></a> 254 <em class='comment'> * return 1 if it is valid, -1 if it is invalid or -2 if it is only part of </em>
<a id='L255' name='L255'></a> 255 <em class='comment'> * multibyte character </em>
<a id='L256' name='L256'></a> 256 <em class='comment'> * I</em>
<a id='L257' name='L257'></a> 257 <em class='comment'> */</em>
<a id='L258' name='L258'></a> 258 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L644' title='Defined at 644 in lib/strutil/strutil.c.'>str_is_valid_char</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>);
<a id='L259' name='L259'></a> 259 
<a id='L260' name='L260'></a> 260 <em class='comment'>/* return next characters after text, do not call on the end of string</em>
<a id='L261' name='L261'></a> 261 <em class='comment'> */</em>
<a id='L262' name='L262'></a> 262 <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L475' title='Defined at 475 in lib/strutil/strutil.c.'>str_get_next_char</a> (<strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L263' name='L263'></a> 263 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L485' title='Defined at 485 in lib/strutil/strutil.c.'>str_cget_next_char</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L264' name='L264'></a> 264 
<a id='L265' name='L265'></a> 265 <em class='comment'>/* return previous characters before text, do not call on the start of strings</em>
<a id='L266' name='L266'></a> 266 <em class='comment'> */</em>
<a id='L267' name='L267'></a> 267 <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L510' title='Defined at 510 in lib/strutil/strutil.c.'>str_get_prev_char</a> (<strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L268' name='L268'></a> 268 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L519' title='Defined at 519 in lib/strutil/strutil.c.'>str_cget_prev_char</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L269' name='L269'></a> 269 
<a id='L270' name='L270'></a> 270 <em class='comment'>/* set text to next characters, do not call on the end of string</em>
<a id='L271' name='L271'></a> 271 <em class='comment'> */</em>
<a id='L272' name='L272'></a> 272 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L494' title='Defined at 494 in lib/strutil/strutil.c.'>str_next_char</a> (<strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L273' name='L273'></a> 273 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L502' title='Defined at 502 in lib/strutil/strutil.c.'>str_cnext_char</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L274' name='L274'></a> 274 
<a id='L275' name='L275'></a> 275 <em class='comment'>/* set text to previous characters, do not call on the start of strings</em>
<a id='L276' name='L276'></a> 276 <em class='comment'> */</em>
<a id='L277' name='L277'></a> 277 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L528' title='Defined at 528 in lib/strutil/strutil.c.'>str_prev_char</a> (<strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L278' name='L278'></a> 278 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L536' title='Defined at 536 in lib/strutil/strutil.c.'>str_cprev_char</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L279' name='L279'></a> 279 
<a id='L280' name='L280'></a> 280 <em class='comment'>/* return next characters after text, do not call on the end of string</em>
<a id='L281' name='L281'></a> 281 <em class='comment'> * works with invalid string </em>
<a id='L282' name='L282'></a> 282 <em class='comment'> * I</em>
<a id='L283' name='L283'></a> 283 <em class='comment'> */</em>
<a id='L284' name='L284'></a> 284 <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L544' title='Defined at 544 in lib/strutil/strutil.c.'>str_get_next_char_safe</a> (<strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L285' name='L285'></a> 285 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L553' title='Defined at 553 in lib/strutil/strutil.c.'>str_cget_next_char_safe</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L286' name='L286'></a> 286 
<a id='L287' name='L287'></a> 287 <em class='comment'>/* return previous characters before text, do not call on the start of strings</em>
<a id='L288' name='L288'></a> 288 <em class='comment'> * works with invalid string </em>
<a id='L289' name='L289'></a> 289 <em class='comment'> * I</em>
<a id='L290' name='L290'></a> 290 <em class='comment'> */</em>
<a id='L291' name='L291'></a> 291 <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L578' title='Defined at 578 in lib/strutil/strutil.c.'>str_get_prev_char_safe</a> (<strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L292' name='L292'></a> 292 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L587' title='Defined at 587 in lib/strutil/strutil.c.'>str_cget_prev_char_safe</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L293' name='L293'></a> 293 
<a id='L294' name='L294'></a> 294 <em class='comment'>/* set text to next characters, do not call on the end of string</em>
<a id='L295' name='L295'></a> 295 <em class='comment'> * works with invalid string </em>
<a id='L296' name='L296'></a> 296 <em class='comment'> * I</em>
<a id='L297' name='L297'></a> 297 <em class='comment'> */</em>
<a id='L298' name='L298'></a> 298 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L562' title='Defined at 562 in lib/strutil/strutil.c.'>str_next_char_safe</a> (<strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L299' name='L299'></a> 299 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L570' title='Defined at 570 in lib/strutil/strutil.c.'>str_cnext_char_safe</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L300' name='L300'></a> 300 
<a id='L301' name='L301'></a> 301 <em class='comment'>/* set text to previous characters, do not call on the start of strings</em>
<a id='L302' name='L302'></a> 302 <em class='comment'> * works with invalid string </em>
<a id='L303' name='L303'></a> 303 <em class='comment'> * I</em>
<a id='L304' name='L304'></a> 304 <em class='comment'> */</em>
<a id='L305' name='L305'></a> 305 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L596' title='Defined at 596 in lib/strutil/strutil.c.'>str_prev_char_safe</a> (<strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L306' name='L306'></a> 306 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L604' title='Defined at 604 in lib/strutil/strutil.c.'>str_cprev_char_safe</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L307' name='L307'></a> 307 
<a id='L308' name='L308'></a> 308 <em class='comment'>/* set text to next noncombining characters, check the end of text</em>
<a id='L309' name='L309'></a> 309 <em class='comment'> * return how many characters was skipped</em>
<a id='L310' name='L310'></a> 310 <em class='comment'> * works with invalid string </em>
<a id='L311' name='L311'></a> 311 <em class='comment'> * I</em>
<a id='L312' name='L312'></a> 312 <em class='comment'> */</em>
<a id='L313' name='L313'></a> 313 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L612' title='Defined at 612 in lib/strutil/strutil.c.'>str_next_noncomb_char</a> (<strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L314' name='L314'></a> 314 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L620' title='Defined at 620 in lib/strutil/strutil.c.'>str_cnext_noncomb_char</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L315' name='L315'></a> 315 
<a id='L316' name='L316'></a> 316 <em class='comment'>/* set text to previous noncombining characters, search stop at begin </em>
<a id='L317' name='L317'></a> 317 <em class='comment'> * return how many characters was skipped</em>
<a id='L318' name='L318'></a> 318 <em class='comment'> * works with invalid string </em>
<a id='L319' name='L319'></a> 319 <em class='comment'> * I</em>
<a id='L320' name='L320'></a> 320 <em class='comment'> */</em>
<a id='L321' name='L321'></a> 321 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L628' title='Defined at 628 in lib/strutil/strutil.c.'>str_prev_noncomb_char</a> (<strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/begin.html' title='Multiple used in 17 places.'>begin</a>);
<a id='L322' name='L322'></a> 322 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L636' title='Defined at 636 in lib/strutil/strutil.c.'>str_cprev_noncomb_char</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> **<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/begin.html' title='Multiple used in 17 places.'>begin</a>);
<a id='L323' name='L323'></a> 323 
<a id='L324' name='L324'></a> 324 <em class='comment'>/* if first characters in ch is space, tabulator  or new lines</em>
<a id='L325' name='L325'></a> 325 <em class='comment'> * I</em>
<a id='L326' name='L326'></a> 326 <em class='comment'> */</em>
<a id='L327' name='L327'></a> 327 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L724' title='Defined at 724 in lib/strutil/strutil.c.'>str_isspace</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>);
<a id='L328' name='L328'></a> 328 
<a id='L329' name='L329'></a> 329 <em class='comment'>/* if first characters in ch is punctuation or symbol</em>
<a id='L330' name='L330'></a> 330 <em class='comment'> * I</em>
<a id='L331' name='L331'></a> 331 <em class='comment'> */</em>
<a id='L332' name='L332'></a> 332 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L732' title='Defined at 732 in lib/strutil/strutil.c.'>str_ispunct</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>);
<a id='L333' name='L333'></a> 333 
<a id='L334' name='L334'></a> 334 <em class='comment'>/* if first characters in ch is alphanum</em>
<a id='L335' name='L335'></a> 335 <em class='comment'> * I</em>
<a id='L336' name='L336'></a> 336 <em class='comment'> */</em>
<a id='L337' name='L337'></a> 337 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L740' title='Defined at 740 in lib/strutil/strutil.c.'>str_isalnum</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>);
<a id='L338' name='L338'></a> 338 
<a id='L339' name='L339'></a> 339 <em class='comment'>/* if first characters in ch is digit</em>
<a id='L340' name='L340'></a> 340 <em class='comment'> * I</em>
<a id='L341' name='L341'></a> 341 <em class='comment'> */</em>
<a id='L342' name='L342'></a> 342 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L748' title='Defined at 748 in lib/strutil/strutil.c.'>str_isdigit</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>);
<a id='L343' name='L343'></a> 343 
<a id='L344' name='L344'></a> 344 <em class='comment'>/* if first characters in ch is printable</em>
<a id='L345' name='L345'></a> 345 <em class='comment'> * I</em>
<a id='L346' name='L346'></a> 346 <em class='comment'> */</em>
<a id='L347' name='L347'></a> 347 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L772' title='Defined at 772 in lib/strutil/strutil.c.'>str_isprint</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>);
<a id='L348' name='L348'></a> 348 
<a id='L349' name='L349'></a> 349 <em class='comment'>/* if first characters in ch is a combining mark (only in utf-8)</em>
<a id='L350' name='L350'></a> 350 <em class='comment'> * combining makrs are assumed to be zero width </em>
<a id='L351' name='L351'></a> 351 <em class='comment'> * I</em>
<a id='L352' name='L352'></a> 352 <em class='comment'> */</em>
<a id='L353' name='L353'></a> 353 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L780' title='Defined at 780 in lib/strutil/strutil.c.'>str_iscombiningmark</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>);
<a id='L354' name='L354'></a> 354 
<a id='L355' name='L355'></a> 355 <em class='comment'>/* write lower from of fisrt characters in ch into out</em>
<a id='L356' name='L356'></a> 356 <em class='comment'> * decrase remain by size of returned characters</em>
<a id='L357' name='L357'></a> 357 <em class='comment'> * if out is not big enough, do nothing</em>
<a id='L358' name='L358'></a> 358 <em class='comment'> */</em>
<a id='L359' name='L359'></a> 359 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L756' title='Defined at 756 in lib/strutil/strutil.c.'>str_toupper</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>, <strong class='reserved'>char</strong> **<a href='../Y/out.html' title='Multiple used in 200 places.'>out</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * <a href='../Y/remain.html' title='Multiple used in 101 places.'>remain</a>);
<a id='L360' name='L360'></a> 360 
<a id='L361' name='L361'></a> 361 <em class='comment'>/* write upper from of fisrt characters in ch into out</em>
<a id='L362' name='L362'></a> 362 <em class='comment'> * decrase remain by size of returned characters</em>
<a id='L363' name='L363'></a> 363 <em class='comment'> * if out is not big enough, do nothing</em>
<a id='L364' name='L364'></a> 364 <em class='comment'> */</em>
<a id='L365' name='L365'></a> 365 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L764' title='Defined at 764 in lib/strutil/strutil.c.'>str_tolower</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>, <strong class='reserved'>char</strong> **<a href='../Y/out.html' title='Multiple used in 200 places.'>out</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * <a href='../Y/remain.html' title='Multiple used in 101 places.'>remain</a>);
<a id='L366' name='L366'></a> 366 
<a id='L367' name='L367'></a> 367 <em class='comment'>/* return length of text in characters</em>
<a id='L368' name='L368'></a> 368 <em class='comment'> * I</em>
<a id='L369' name='L369'></a> 369 <em class='comment'> */</em>
<a id='L370' name='L370'></a> 370 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L684' title='Defined at 684 in lib/strutil/strutil.c.'>str_length</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L371' name='L371'></a> 371 
<a id='L372' name='L372'></a> 372 <em class='comment'>/* return length of text in characters, limit to size</em>
<a id='L373' name='L373'></a> 373 <em class='comment'> * I</em>
<a id='L374' name='L374'></a> 374 <em class='comment'> */</em>
<a id='L375' name='L375'></a> 375 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L700' title='Defined at 700 in lib/strutil/strutil.c.'>str_length2</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>int</strong> <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>);
<a id='L376' name='L376'></a> 376 
<a id='L377' name='L377'></a> 377 <em class='comment'>/* return length of one char</em>
<a id='L378' name='L378'></a> 378 <em class='comment'> * I</em>
<a id='L379' name='L379'></a> 379 <em class='comment'> */</em>
<a id='L380' name='L380'></a> 380 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L692' title='Defined at 692 in lib/strutil/strutil.c.'>str_length_char</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L381' name='L381'></a> 381 
<a id='L382' name='L382'></a> 382 <em class='comment'>/* return length of text in characters, count only noncombining characters</em>
<a id='L383' name='L383'></a> 383 <em class='comment'> * I</em>
<a id='L384' name='L384'></a> 384 <em class='comment'> */</em>
<a id='L385' name='L385'></a> 385 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L708' title='Defined at 708 in lib/strutil/strutil.c.'>str_length_noncomb</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L386' name='L386'></a> 386 
<a id='L387' name='L387'></a> 387 <em class='comment'>/* replace all invalid characters in text with questionmark</em>
<a id='L388' name='L388'></a> 388 <em class='comment'> * after return, text is valid string in terminal encoding</em>
<a id='L389' name='L389'></a> 389 <em class='comment'> * I</em>
<a id='L390' name='L390'></a> 390 <em class='comment'> */</em>
<a id='L391' name='L391'></a> 391 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L884' title='Defined at 884 in lib/strutil/strutil.c.'>str_fix_string</a> (<strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L392' name='L392'></a> 392 
<a id='L393' name='L393'></a> 393 <em class='comment'>/* replace all invalid characters in text with questionmark</em>
<a id='L394' name='L394'></a> 394 <em class='comment'> * replace all unprintable characters with '.'</em>
<a id='L395' name='L395'></a> 395 <em class='comment'> * return static allocated string, "text" is not changed</em>
<a id='L396' name='L396'></a> 396 <em class='comment'> * returned string do not need to be freed</em>
<a id='L397' name='L397'></a> 397 <em class='comment'> * I</em>
<a id='L398' name='L398'></a> 398 <em class='comment'> */</em>
<a id='L399' name='L399'></a> 399 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L443' title='Defined at 443 in lib/strutil/strutil.c.'>str_term_form</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L400' name='L400'></a> 400 
<a id='L401' name='L401'></a> 401 <em class='comment'>/* like str_term_form, but text can be alignment to width</em>
<a id='L402' name='L402'></a> 402 <em class='comment'> * alignment is specified in just_mode (J_LEFT, J_LEFT_FIT, ...)</em>
<a id='L403' name='L403'></a> 403 <em class='comment'> * result is completed with spaces to width</em>
<a id='L404' name='L404'></a> 404 <em class='comment'> * I</em>
<a id='L405' name='L405'></a> 405 <em class='comment'> */</em>
<a id='L406' name='L406'></a> 406 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L451' title='Defined at 451 in lib/strutil/strutil.c.'>str_fit_to_term</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>int</strong> <a href='../Y/width.html' title='Multiple used in 278 places.'>width</a>, <a href='../S/lib--strutil.h.html#L85' title='Defined at 85 in lib/strutil.h.'>align_crt_t</a> <a href='../Y/just_mode.html' title='Multiple used in 22 places.'>just_mode</a>);
<a id='L407' name='L407'></a> 407 
<a id='L408' name='L408'></a> 408 <em class='comment'>/* like str_term_form, but when text is wider than width, three dots are</em>
<a id='L409' name='L409'></a> 409 <em class='comment'> * inserted at begin and result is completed with suffix of text</em>
<a id='L410' name='L410'></a> 410 <em class='comment'> * no additional spaces are inserted</em>
<a id='L411' name='L411'></a> 411 <em class='comment'> * I</em>
<a id='L412' name='L412'></a> 412 <em class='comment'> */</em>
<a id='L413' name='L413'></a> 413 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L459' title='Defined at 459 in lib/strutil/strutil.c.'>str_term_trim</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>int</strong> <a href='../Y/width.html' title='Multiple used in 278 places.'>width</a>);
<a id='L414' name='L414'></a> 414 
<a id='L415' name='L415'></a> 415 
<a id='L416' name='L416'></a> 416 <em class='comment'>/* like str_term_form, but return only specified substring</em>
<a id='L417' name='L417'></a> 417 <em class='comment'> * start - column (position) on terminal, where substring begin</em>
<a id='L418' name='L418'></a> 418 <em class='comment'> * result is completed with spaces to width</em>
<a id='L419' name='L419'></a> 419 <em class='comment'> * I</em>
<a id='L420' name='L420'></a> 420 <em class='comment'> */</em>
<a id='L421' name='L421'></a> 421 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L467' title='Defined at 467 in lib/strutil/strutil.c.'>str_term_substring</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>int</strong> <a href='../S/src--editor--etags.c.html#L179' title='Defined at 179 in src/editor/etags.c.'>start</a>, <strong class='reserved'>int</strong> <a href='../Y/width.html' title='Multiple used in 278 places.'>width</a>);
<a id='L422' name='L422'></a> 422 
<a id='L423' name='L423'></a> 423 <em class='comment'>/* return width, that will be text occupied on terminal</em>
<a id='L424' name='L424'></a> 424 <em class='comment'> * I</em>
<a id='L425' name='L425'></a> 425 <em class='comment'> */</em>
<a id='L426' name='L426'></a> 426 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L652' title='Defined at 652 in lib/strutil/strutil.c.'>str_term_width1</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L427' name='L427'></a> 427 
<a id='L428' name='L428'></a> 428 <em class='comment'>/* return width, that will be text occupied on terminal</em>
<a id='L429' name='L429'></a> 429 <em class='comment'> * text is limited by length in characters</em>
<a id='L430' name='L430'></a> 430 <em class='comment'> * I</em>
<a id='L431' name='L431'></a> 431 <em class='comment'> */</em>
<a id='L432' name='L432'></a> 432 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L660' title='Defined at 660 in lib/strutil/strutil.c.'>str_term_width2</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/length.html' title='Multiple used in 226 places.'>length</a>);
<a id='L433' name='L433'></a> 433 
<a id='L434' name='L434'></a> 434 <em class='comment'>/* return width, that will be character occupied on terminal</em>
<a id='L435' name='L435'></a> 435 <em class='comment'> * combining characters are always zero width</em>
<a id='L436' name='L436'></a> 436 <em class='comment'> * I</em>
<a id='L437' name='L437'></a> 437 <em class='comment'> */</em>
<a id='L438' name='L438'></a> 438 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L668' title='Defined at 668 in lib/strutil/strutil.c.'>str_term_char_width</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L439' name='L439'></a> 439 
<a id='L440' name='L440'></a> 440 <em class='comment'>/* convert position in characters to position in bytes </em>
<a id='L441' name='L441'></a> 441 <em class='comment'> * I</em>
<a id='L442' name='L442'></a> 442 <em class='comment'> */</em>
<a id='L443' name='L443'></a> 443 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L676' title='Defined at 676 in lib/strutil/strutil.c.'>str_offset_to_pos</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/length.html' title='Multiple used in 226 places.'>length</a>);
<a id='L444' name='L444'></a> 444 
<a id='L445' name='L445'></a> 445 <em class='comment'>/* convert position on terminal to position in characters</em>
<a id='L446' name='L446'></a> 446 <em class='comment'> * I</em>
<a id='L447' name='L447'></a> 447 <em class='comment'> */</em>
<a id='L448' name='L448'></a> 448 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L716' title='Defined at 716 in lib/strutil/strutil.c.'>str_column_to_pos</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>);
<a id='L449' name='L449'></a> 449 
<a id='L450' name='L450'></a> 450 <em class='comment'>/* like str_fit_to_term width just_mode = J_LEFT_FIT, </em>
<a id='L451' name='L451'></a> 451 <em class='comment'> * but do not insert additional spaces</em>
<a id='L452' name='L452'></a> 452 <em class='comment'> * I</em>
<a id='L453' name='L453'></a> 453 <em class='comment'> */</em>
<a id='L454' name='L454'></a> 454 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L788' title='Defined at 788 in lib/strutil/strutil.c.'>str_trunc</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>int</strong> <a href='../Y/width.html' title='Multiple used in 278 places.'>width</a>);
<a id='L455' name='L455'></a> 455 
<a id='L456' name='L456'></a> 456 <em class='comment'>/* create needle, that will be searched in str_search_fist/last,</em>
<a id='L457' name='L457'></a> 457 <em class='comment'> * so needle can be reused</em>
<a id='L458' name='L458'></a> 458 <em class='comment'> * in UTF-8 return normalized form of needle</em>
<a id='L459' name='L459'></a> 459 <em class='comment'> */</em>
<a id='L460' name='L460'></a> 460 <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L796' title='Defined at 796 in lib/strutil/strutil.c.'>str_create_search_needle</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/needle.html' title='Multiple used in 31 places.'>needle</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L461' name='L461'></a> 461 
<a id='L462' name='L462'></a> 462 <em class='comment'>/* free needle returned by str_create_search_needle</em>
<a id='L463' name='L463'></a> 463 <em class='comment'> */</em>
<a id='L464' name='L464'></a> 464 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L804' title='Defined at 804 in lib/strutil/strutil.c.'>str_release_search_needle</a> (<strong class='reserved'>char</strong> *<a href='../Y/needle.html' title='Multiple used in 31 places.'>needle</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L465' name='L465'></a> 465 
<a id='L466' name='L466'></a> 466 <em class='comment'>/* search for first occurrence of search in text</em>
<a id='L467' name='L467'></a> 467 <em class='comment'> */</em>
<a id='L468' name='L468'></a> 468 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L812' title='Defined at 812 in lib/strutil/strutil.c.'>str_search_first</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/needle.html' title='Multiple used in 31 places.'>needle</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L469' name='L469'></a> 469 
<a id='L470' name='L470'></a> 470 <em class='comment'>/* search for last occurrence of search in text</em>
<a id='L471' name='L471'></a> 471 <em class='comment'> */</em>
<a id='L472' name='L472'></a> 472 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L820' title='Defined at 820 in lib/strutil/strutil.c.'>str_search_last</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/needle.html' title='Multiple used in 31 places.'>needle</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L473' name='L473'></a> 473 
<a id='L474' name='L474'></a> 474 <em class='comment'>/* case sensitive compare two strings</em>
<a id='L475' name='L475'></a> 475 <em class='comment'> * I</em>
<a id='L476' name='L476'></a> 476 <em class='comment'> */</em>
<a id='L477' name='L477'></a> 477 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L836' title='Defined at 836 in lib/strutil/strutil.c.'>str_compare</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t1.html' title='Multiple used in 54 places.'>t1</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t2.html' title='Multiple used in 65 places.'>t2</a>);
<a id='L478' name='L478'></a> 478 
<a id='L479' name='L479'></a> 479 <em class='comment'>/* case sensitive compare two strings</em>
<a id='L480' name='L480'></a> 480 <em class='comment'> * if one string is prefix of the other string, return 0</em>
<a id='L481' name='L481'></a> 481 <em class='comment'> * I</em>
<a id='L482' name='L482'></a> 482 <em class='comment'> */</em>
<a id='L483' name='L483'></a> 483 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L844' title='Defined at 844 in lib/strutil/strutil.c.'>str_ncompare</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t1.html' title='Multiple used in 54 places.'>t1</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t2.html' title='Multiple used in 65 places.'>t2</a>);
<a id='L484' name='L484'></a> 484 
<a id='L485' name='L485'></a> 485 <em class='comment'>/* case insensitive compare two strings</em>
<a id='L486' name='L486'></a> 486 <em class='comment'> * I</em>
<a id='L487' name='L487'></a> 487 <em class='comment'> */</em>
<a id='L488' name='L488'></a> 488 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L852' title='Defined at 852 in lib/strutil/strutil.c.'>str_casecmp</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t1.html' title='Multiple used in 54 places.'>t1</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t2.html' title='Multiple used in 65 places.'>t2</a>);
<a id='L489' name='L489'></a> 489 
<a id='L490' name='L490'></a> 490 <em class='comment'>/* case insensitive compare two strings</em>
<a id='L491' name='L491'></a> 491 <em class='comment'> * if one string is prefix of the other string, return 0</em>
<a id='L492' name='L492'></a> 492 <em class='comment'> * I</em>
<a id='L493' name='L493'></a> 493 <em class='comment'> */</em>
<a id='L494' name='L494'></a> 494 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L860' title='Defined at 860 in lib/strutil/strutil.c.'>str_ncasecmp</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t1.html' title='Multiple used in 54 places.'>t1</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t2.html' title='Multiple used in 65 places.'>t2</a>);
<a id='L495' name='L495'></a> 495 
<a id='L496' name='L496'></a> 496 <em class='comment'>/* return, how many bytes are are same from start in text and prefix</em>
<a id='L497' name='L497'></a> 497 <em class='comment'> * both strings are decomposed before comparing and return value is counted</em>
<a id='L498' name='L498'></a> 498 <em class='comment'> * in decomposed form, too. calling with prefix, prefix, you get size in bytes</em>
<a id='L499' name='L499'></a> 499 <em class='comment'> * of prefix in decomposed form,</em>
<a id='L500' name='L500'></a> 500 <em class='comment'> * I</em>
<a id='L501' name='L501'></a> 501 <em class='comment'> */</em>
<a id='L502' name='L502'></a> 502 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L868' title='Defined at 868 in lib/strutil/strutil.c.'>str_prefix</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/prefix.html' title='Multiple used in 80 places.'>prefix</a>);
<a id='L503' name='L503'></a> 503 
<a id='L504' name='L504'></a> 504 <em class='comment'>/* case insensitive version of str_prefix</em>
<a id='L505' name='L505'></a> 505 <em class='comment'> * I</em>
<a id='L506' name='L506'></a> 506 <em class='comment'> */</em>
<a id='L507' name='L507'></a> 507 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L876' title='Defined at 876 in lib/strutil/strutil.c.'>str_caseprefix</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/prefix.html' title='Multiple used in 80 places.'>prefix</a>);
<a id='L508' name='L508'></a> 508 
<a id='L509' name='L509'></a> 509 <em class='comment'>/* create a key that is used by str_key_collate</em>
<a id='L510' name='L510'></a> 510 <em class='comment'> * I</em>
<a id='L511' name='L511'></a> 511 <em class='comment'> */</em>
<a id='L512' name='L512'></a> 512 <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L892' title='Defined at 892 in lib/strutil/strutil.c.'>str_create_key</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L513' name='L513'></a> 513 
<a id='L514' name='L514'></a> 514 <em class='comment'>/* create a key that is used by str_key_collate</em>
<a id='L515' name='L515'></a> 515 <em class='comment'> * should aware dot '.' in text</em>
<a id='L516' name='L516'></a> 516 <em class='comment'> * I</em>
<a id='L517' name='L517'></a> 517 <em class='comment'> */</em>
<a id='L518' name='L518'></a> 518 <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L900' title='Defined at 900 in lib/strutil/strutil.c.'>str_create_key_for_filename</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L519' name='L519'></a> 519 
<a id='L520' name='L520'></a> 520 <em class='comment'>/* compare two string using LC_COLLATE, if is possible</em>
<a id='L521' name='L521'></a> 521 <em class='comment'> * if case_sen is set, comparing is case sensitive,</em>
<a id='L522' name='L522'></a> 522 <em class='comment'> * case_sen must be same for str_create_key, str_key_collate and str_release_key</em>
<a id='L523' name='L523'></a> 523 <em class='comment'> * I</em>
<a id='L524' name='L524'></a> 524 <em class='comment'> */</em>
<a id='L525' name='L525'></a> 525 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strutil.c.html#L908' title='Defined at 908 in lib/strutil/strutil.c.'>str_key_collate</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t1.html' title='Multiple used in 54 places.'>t1</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/t2.html' title='Multiple used in 65 places.'>t2</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L526' name='L526'></a> 526 
<a id='L527' name='L527'></a> 527 <em class='comment'>/* release_key created by str_create_key, only rigth way to release key</em>
<a id='L528' name='L528'></a> 528 <em class='comment'> * I</em>
<a id='L529' name='L529'></a> 529 <em class='comment'> */</em>
<a id='L530' name='L530'></a> 530 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L916' title='Defined at 916 in lib/strutil/strutil.c.'>str_release_key</a> (<strong class='reserved'>char</strong> *<a href='../Y/key.html' title='Multiple used in 226 places.'>key</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/case_sen.html' title='Multiple used in 84 places.'>case_sen</a>);
<a id='L531' name='L531'></a> 531 
<a id='L532' name='L532'></a> 532 <em class='comment'>/* return TRUE if codeset_name is utf8 or utf-8</em>
<a id='L533' name='L533'></a> 533 <em class='comment'> * I</em>
<a id='L534' name='L534'></a> 534 <em class='comment'> */</em>
<a id='L535' name='L535'></a> 535 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--strutil--strutil.c.html#L392' title='Defined at 392 in lib/strutil/strutil.c.'>str_isutf8</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/codeset_name.html' title='Multiple used in 3 places.'>codeset_name</a>);
<a id='L536' name='L536'></a> 536 
<a id='L537' name='L537'></a> 537 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L375' title='Defined at 375 in lib/strutil/strutil.c.'>str_detect_termencoding</a> (<strong class='reserved'>void</strong>);
<a id='L538' name='L538'></a> 538 
<a id='L539' name='L539'></a> 539 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--strverscmp.c.html#L84' title='Defined at 84 in lib/strutil/strverscmp.c.'>str_verscmp</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s1.html' title='Multiple used in 138 places.'>s1</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s2.html' title='Multiple used in 97 places.'>s2</a>);
<a id='L540' name='L540'></a> 540 
<a id='L541' name='L541'></a> 541 <em class='comment'>/* Compare version strings:</em>
<a id='L542' name='L542'></a> 542 <em class='comment'></em>
<a id='L543' name='L543'></a> 543 <em class='comment'>   This function compares strings s1 and s2:</em>
<a id='L544' name='L544'></a> 544 <em class='comment'>   1) By PREFIX in the same way as strcmp.</em>
<a id='L545' name='L545'></a> 545 <em class='comment'>   2) Then by VERSION (most similarly to version compare of Debian's dpkg).</em>
<a id='L546' name='L546'></a> 546 <em class='comment'>   Leading zeros in version numbers are ignored.</em>
<a id='L547' name='L547'></a> 547 <em class='comment'>   3) If both (PREFIX and  VERSION) are equal, strcmp function is used for</em>
<a id='L548' name='L548'></a> 548 <em class='comment'>   comparison. So this function can return 0 if (and only if) strings s1</em>
<a id='L549' name='L549'></a> 549 <em class='comment'>   and s2 are identical.</em>
<a id='L550' name='L550'></a> 550 <em class='comment'></em>
<a id='L551' name='L551'></a> 551 <em class='comment'>   It returns number &gt; 0 for s1 &gt; s2, 0 for s1 == s2 and number &lt; 0 for s1 &lt; s2.</em>
<a id='L552' name='L552'></a> 552 <em class='comment'></em>
<a id='L553' name='L553'></a> 553 <em class='comment'>   This function compares strings, in a way that if VER1 and VER2 are version</em>
<a id='L554' name='L554'></a> 554 <em class='comment'>   numbers and PREFIX and SUFFIX (SUFFIX defined as (\.[A-Za-z~][A-Za-z0-9~]*)*)</em>
<a id='L555' name='L555'></a> 555 <em class='comment'>   are strings then VER1 &lt; VER2 implies filevercmp (PREFIX VER1 SUFFIX,</em>
<a id='L556' name='L556'></a> 556 <em class='comment'>   PREFIX VER2 SUFFIX) &lt; 0.</em>
<a id='L557' name='L557'></a> 557 <em class='comment'></em>
<a id='L558' name='L558'></a> 558 <em class='comment'>   This function is intended to be a replacement for strverscmp.</em>
<a id='L559' name='L559'></a> 559 <em class='comment'> */</em>
<a id='L560' name='L560'></a> 560 <strong class='reserved'>int</strong> <a href='../S/lib--strutil--filevercmp.c.html#L174' title='Defined at 174 in lib/strutil/filevercmp.c.'>filevercmp</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s1.html' title='Multiple used in 138 places.'>s1</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s2.html' title='Multiple used in 97 places.'>s2</a>);
<a id='L561' name='L561'></a> 561 
<a id='L562' name='L562'></a> 562 
<a id='L563' name='L563'></a> 563 <em class='comment'>/* return how many lines and columns will text occupy on terminal</em>
<a id='L564' name='L564'></a> 564 <em class='comment'> */</em>
<a id='L565' name='L565'></a> 565 <strong class='reserved'>void</strong> <a href='../S/lib--strutil--strutil.c.html#L924' title='Defined at 924 in lib/strutil/strutil.c.'>str_msg_term_size</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>, <strong class='reserved'>int</strong> *<a href='../Y/lines.html' title='Multiple used in 415 places.'>lines</a>, <strong class='reserved'>int</strong> *<a href='../Y/columns.html' title='Multiple used in 44 places.'>columns</a>);
<a id='L566' name='L566'></a> 566 
<a id='L567' name='L567'></a> 567 <em class='comment'>/**</em>
<a id='L568' name='L568'></a> 568 <em class='comment'> * skip first needle's in haystack</em>
<a id='L569' name='L569'></a> 569 <em class='comment'> *</em>
<a id='L570' name='L570'></a> 570 <em class='comment'> * @param haystack pointer to string</em>
<a id='L571' name='L571'></a> 571 <em class='comment'> * @param needle pointer to string</em>
<a id='L572' name='L572'></a> 572 <em class='comment'> * @param skip_count skip first bytes</em>
<a id='L573' name='L573'></a> 573 <em class='comment'> *</em>
<a id='L574' name='L574'></a> 574 <em class='comment'> * @return pointer to skip_count+1 needle (or NULL if not found).</em>
<a id='L575' name='L575'></a> 575 <em class='comment'> */</em>
<a id='L576' name='L576'></a> 576 
<a id='L577' name='L577'></a> 577 <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--strutil.c.html#L965' title='Defined at 965 in lib/strutil/strutil.c.'>strrstr_skip_count</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/haystack.html' title='Multiple used in 21 places.'>haystack</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/needle.html' title='Multiple used in 31 places.'>needle</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/skip_count.html' title='Multiple used in 6 places.'>skip_count</a>);
<a id='L578' name='L578'></a> 578 
<a id='L579' name='L579'></a> 579 <strong class='reserved'>char</strong> *<a href='../S/lib--strutil--replace.c.html#L72' title='Defined at 72 in lib/strutil/replace.c.'>str_replace_all</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/haystack.html' title='Multiple used in 21 places.'>haystack</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/needle.html' title='Multiple used in 31 places.'>needle</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/replacement.html' title='Multiple used in 5 places.'>replacement</a>);
<a id='L580' name='L580'></a> 580 
<a id='L581' name='L581'></a> 581 <a href='../S/lib--strutil.h.html#L99' title='Defined at 99 in lib/strutil.h.'>strtol_error_t</a> <a href='../S/lib--strutil--xstrtol.c.html#L77' title='Defined at 77 in lib/strutil/xstrtol.c.'>xstrtoumax</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <strong class='reserved'>char</strong> **<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>, <strong class='reserved'>int</strong> <a href='../Y/base.html' title='Multiple used in 107 places.'>base</a>, <a href='../Y/uintmax_t.html' title='Multiple used in 86 places.'>uintmax_t</a> * <a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,
<a id='L582' name='L582'></a> 582                            <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/valid_suffixes.html' title='Multiple used in 6 places.'>valid_suffixes</a>);
<a id='L583' name='L583'></a> 583 <a href='../Y/uintmax_t.html' title='Multiple used in 86 places.'>uintmax_t</a> <a href='../S/lib--strutil--strutil.c.html#L994' title='Defined at 994 in lib/strutil/strutil.c.'>parse_integer</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/str.html' title='Multiple used in 587 places.'>str</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> * <a href='../Y/invalid.html' title='Multiple used in 9 places.'>invalid</a>);
<a id='L584' name='L584'></a> 584 
<a id='L585' name='L585'></a> 585 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L586' name='L586'></a> 586 <em class='comment'>/*** inline functions ****************************************************************************/</em>
<a id='L587' name='L587'></a> 587 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L588' name='L588'></a> 588 
<a id='L589' name='L589'></a> 589 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <strong class='reserved'>void</strong>
<a id='L590' name='L590'></a> 590 <a href='../Y/str_replace.html' title='Multiple used in 2 places.'>str_replace</a> (<strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <strong class='reserved'>char</strong> <a href='../Y/from.html' title='Multiple used in 162 places.'>from</a>, <strong class='reserved'>char</strong> <a href='../Y/to.html' title='Multiple used in 6 places.'>to</a>)
<a id='L591' name='L591'></a> 591 <em class='brace'>{</em>
<a id='L592' name='L592'></a> 592     <strong class='reserved'>for</strong> (; *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a> != '\0'; <a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>++)
<a id='L593' name='L593'></a> 593     <em class='brace'>{</em>
<a id='L594' name='L594'></a> 594         <strong class='reserved'>if</strong> (*<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a> == <a href='../Y/from.html' title='Multiple used in 162 places.'>from</a>)
<a id='L595' name='L595'></a> 595             *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a> = <a href='../Y/to.html' title='Multiple used in 6 places.'>to</a>;
<a id='L596' name='L596'></a> 596     <em class='brace'>}</em>
<a id='L597' name='L597'></a> 597 <em class='brace'>}</em>
<a id='L598' name='L598'></a> 598 
<a id='L599' name='L599'></a> 599 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L600' name='L600'></a> 600 <em class='comment'>/*</em>
<a id='L601' name='L601'></a> 601 <em class='comment'> * strcpy is unsafe on overlapping memory areas, so define memmove-alike</em>
<a id='L602' name='L602'></a> 602 <em class='comment'> * string function.</em>
<a id='L603' name='L603'></a> 603 <em class='comment'> * Have sense only when:</em>
<a id='L604' name='L604'></a> 604 <em class='comment'> *  * dest &lt;= src</em>
<a id='L605' name='L605'></a> 605 <em class='comment'> *   AND</em>
<a id='L606' name='L606'></a> 606 <em class='comment'> *  * dest and str are pointers to one object (as Roland Illig pointed).</em>
<a id='L607' name='L607'></a> 607 <em class='comment'> *</em>
<a id='L608' name='L608'></a> 608 <em class='comment'> * We can't use str*cpy funs here:</em>
<a id='L609' name='L609'></a> 609 <em class='comment'> * http://kerneltrap.org/mailarchive/openbsd-misc/2008/5/27/1951294</em>
<a id='L610' name='L610'></a> 610 <em class='comment'> *</em>
<a id='L611' name='L611'></a> 611 <em class='comment'> * @param dest pointer to string</em>
<a id='L612' name='L612'></a> 612 <em class='comment'> * @param src pointer to string</em>
<a id='L613' name='L613'></a> 613 <em class='comment'> *</em>
<a id='L614' name='L614'></a> 614 <em class='comment'> * @return newly allocated string</em>
<a id='L615' name='L615'></a> 615 <em class='comment'> *</em>
<a id='L616' name='L616'></a> 616 <em class='comment'> */</em>
<a id='L617' name='L617'></a> 617 
<a id='L618' name='L618'></a> 618 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <strong class='reserved'>char</strong> *
<a id='L619' name='L619'></a> 619 <a href='../R/str_move.html' title='Multiple referred from 9 places.'>str_move</a> (<strong class='reserved'>char</strong> *<a href='../Y/dest.html' title='Multiple used in 126 places.'>dest</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/src.html' title='Multiple used in 133 places.'>src</a>)
     <em class='comment'>/* <a href='#L220'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L220'><img class='icon' src='../icons/first.png' alt='[first]' /></a><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+619 lib/strutil.h'  /> */</em>
<a id='L620' name='L620'></a> 620 <em class='brace'>{</em>
<a id='L621' name='L621'></a> 621     <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/n.html' title='Multiple used in 370 places.'>n</a>;
<a id='L622' name='L622'></a> 622 
<a id='L623' name='L623'></a> 623     <a href='../Y/g_assert.html' title='Multiple used in 31 places.'>g_assert</a> (<a href='../Y/dest.html' title='Multiple used in 126 places.'>dest</a> &lt;= <a href='../Y/src.html' title='Multiple used in 133 places.'>src</a>);
<a id='L624' name='L624'></a> 624 
<a id='L625' name='L625'></a> 625     <a href='../Y/n.html' title='Multiple used in 370 places.'>n</a> = <a href='../Y/strlen.html' title='Multiple used in 281 places.'>strlen</a> (<a href='../Y/src.html' title='Multiple used in 133 places.'>src</a>) + 1;       <em class='comment'>/* + '\0' */</em>
<a id='L626' name='L626'></a> 626 
<a id='L627' name='L627'></a> 627     <strong class='reserved'>return</strong> (<strong class='reserved'>char</strong> *) <a href='../Y/memmove.html' title='Multiple used in 14 places.'>memmove</a> (<a href='../Y/dest.html' title='Multiple used in 126 places.'>dest</a>, <a href='../Y/src.html' title='Multiple used in 133 places.'>src</a>, <a href='../Y/n.html' title='Multiple used in 370 places.'>n</a>);
<a id='L628' name='L628'></a> 628 <em class='brace'>}</em>
<a id='L629' name='L629'></a> 629 
<a id='L630' name='L630'></a> 630 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L631' name='L631'></a> 631 
<a id='L632' name='L632'></a> 632 <em class='sharp'>#endif</em> <em class='comment'>/* MC_STRUTIL_H */</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L220'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L619'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+632 lib/strutil.h'  /> */</em>
</body>
</html>
